package com.faithbj.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.faithbj.common.model.fm.property.FamilyMemberProperty;
import com.faithbj.dao.FamilyMemberPropertyDao;
import com.faithbj.service.FamilyMemberPropertyService;

@Service
@Transactional
public class FamilyMemberPropertyServiceImpl implements FamilyMemberPropertyService {

	@Resource
	public FamilyMemberPropertyDao familyMemberPropertyDao;
	
	@Override
	public FamilyMemberProperty findPropertyByFmId(String fmId) {
		return familyMemberPropertyDao.get("fmId", fmId);
	}

	@Override
	public Boolean saveOrUpdate(FamilyMemberProperty fmp) {
		familyMemberPropertyDao.saveOrUpdate(fmp);
		return true;
	}
}
